Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

96
Views
action of unbinding an input="submit" from some attributes

is there any identifier I can put in the form to link all its children with the "button" or "input submit"

For example, the default behavior of my html is: when I press submit input, both the "text" and "checkbox" fields will be reset/cleared to their default.

In this case, I would like that when clicking on "submit", only the "text" field would be applied by default (clean), while nothing would influence the "input" of the "checkbox" type.

At first, I thought that if I created two "" and separated them, the "submit" of the first "form" would not influence anything in the second "form", but this was not the behavior.

<section class="container">
        <div class="container__box">
            
            <h1>To-do list</h1>
            <form class="container__adicionar-Itens" id="adicionar">
                <input type="text" class="container__button"><input type="submit" value="Adicionar">
            </form>

            <form class="container__itens">
                <input type="checkbox" id="MarcarReuniao" class="container__input-itens"><label for="MarcarReuniao" class="container__label-itens">Marcar Reunião</label>
            </form>
        </div>
    </section>

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!